<?php 
$title = $title ? $title : '信息提示'; 

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title>
<base href="<?php echo SITE_ADDR;?>"></base> 
<!--基础文件，分别是jQuery基库和拖拽UI插件-->
    <link rel="stylesheet" type="text/css" href="/public/js/jquery/mobile/css/jquery.mobile-1.3.2.css"/>
    <link rel="stylesheet" type="text/css" href="/public/js/jquery/mobile/assets/css/gmedia.css?v=20130925"/>
    <script type="text/javascript" src="/public/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/public/js/mobile_common.js"></script><!--常用js-->
    <script type="text/javascript" src="/public/js/common.js"></script><!--常用js-->
    <script type="text/javascript" src="/public/js/jquery/mobile/jquery.mobile-1.3.2.js"></script>
    
<!-- 对话框核心JS文件和对应的CSS文件-->

<?php
if($type=='page'){
	if($model){
		$img = "success";
	}else{
		$img = "error";
	}	
?>

<!--S 跳转-->
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="middle"><img src="../public/images/user/jump-<?php echo $img; ?>.jpg" /><p><?php echo $msg; ?></p></td>
  </tr>
</table>

<!--E 跳转-->
<script type="text/javascript">

my_page('<?php echo $model; ?>','<?php echo $url; ?>','<?php echo $target; ?>','<?php echo $time; ?>')
</script>
<?php
exit;	
}
?>

<script type="text/javascript">
$(function(){
<?php 
	switch($type){
		case "alert":
		case "error":
		case "success":
		case "warning":
		?>
		    my_jump('<?php echo $msg; ?>','<?php echo $title; ?>' ,'<?php echo $url; ?>',<?php echo $time; ?>,'<?php echo $target; ?>','<?php echo $type; ?>');
		<?php
		break;
		
		case "close":
		?>	
		   my_close();
		<?php
		break;
		default:
		?>
		    my_jump('<?php echo $msg; ?>','<?php echo $title; ?>' ,'<?php echo $url; ?>',<?php echo $time; ?>,'<?php echo $target; ?>','<?php echo 'alert'; ?>');
		<?php
		break;
		
	}
?>


});
</script>
</head>
<body bgcolor="#cccccc">

</body>
</html>
<?php exit;?>